package com.learn.educourseboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 课程节内容
 * </p>
 *
 * @author m
 * @since 2022-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CourseLesson对象", description="课程节内容")
public class CourseLesson implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "课程id")
    private Integer courseId;

    @ApiModelProperty(value = "章节id")
    private Integer sectionId;

    @ApiModelProperty(value = "课时主题")
    private String theme;

    @ApiModelProperty(value = "课时时长(分钟)")
    private Integer duration;

    @ApiModelProperty(value = "是否免费")
    @TableField("is_free")
    private Boolean free;

    @ApiModelProperty(value = "记录创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_del")
    private Boolean del;

    @ApiModelProperty(value = "排序字段")
    private Integer orderNum;

    @ApiModelProperty(value = "课时状态,0-隐藏，1-未发布，2-已发布")
    private Integer status;


}
